{template 'search', 'header'}
<div class="bannerPic" style="background-image: url(/statics/templates/jtwy/images/banner2.jpg);"></div>
<div class="container searchContainer">


    <div class="classiy-news-wrap fadeUp">
        <div class="news-up-wrap ">
            <div class="con news-up-allNews">关键字 <span style="color:#EC872C">{$search_q}</span> 的搜索结果
            </div>

            <form action="{APP_PATH}index.php" method="get">

                <div class="news-up-right ">
                    <!--<select class="form-control optionStyle">-->
                    <!--    <option>按年份</option>-->
                    <!--  </select>-->
                    <div class="form-group searchWrap ">
                        <!--                                <input type="text" class="searchInput" name="keywords">-->
                        <!--                                <button class="searchBtn">搜索</button>-->
                        <input type="hidden" name="m" value="search"/>
                        <input type="hidden" name="c" value="index"/>
                        <input type="hidden" name="a" value="init"/>
                        <input type="hidden" name="typeid" value="1" id="typeid"/>
                        <input type="hidden" name="siteid" value="{$siteid}" id="siteid"/>
                        <input type="text" class="searchInput" name="q" id="q" value="{$search_q}"/>
                        <input type="submit" value="搜索" class="searchBtn" />
                    </div>
                </div>

            </form>


        </div>
    </div>

    <div class="width inner_container">
        <ul class="news_list mt20">
            {loop $data $i $r}
            <li class="news-item-wrap">
                <div class="news-item-time ">
                    <p class="news-item-date">{date('d',$r[inputtime])}</p>
                    <p class="news-item-year">{date('Y-m',$r[inputtime])}</p>
                </div>
                <div class="news-item-content">
                    <div class="news-item-title"><a href="{$r[url]}" title="{$r[title]}">{$r[title]}</a></div>
                    <div class="news-item-discription">{$r[description]}</div>
                    <div class="news-item-more"><a href="{$r[url]}" title="{$r[title]}">MORE></a></div>
                </div>
            </li>
            {/loop}
            {if empty($data)}
            <div class="searchEmpty text-center">没有相关搜索结果</div>
            {/if}
        </ul>
        <div class="clear"></div>

        <div class="container-fluid pagecen pageCut" style="margin-bottom:30px">
            <ul class="pagelist row justify-content-center">
                {$pages}
            </ul>
        </div>


    </div>
</div>
{template "search","footer"}